export function uid(prefix = ''): string {
  const rand = crypto?.getRandomValues?.(new Uint32Array(2));
  const part = rand ? Array.from(rand).map(n => n.toString(16)).join('') : Math.random().toString(16).slice(2);
  return prefix + Date.now().toString(36) + '-' + part;
}
